#ifndef PARAMETER_H
#define PARAMETER_H

#include <QWidget>
#include "can.h"

namespace Ui {
class Parameter;
}

class Parameter : public QWidget
{
    Q_OBJECT

public:
    explicit Parameter(QWidget *parent = nullptr);
    ~Parameter();

private slots:
    void on_pushButtonConfirm_clicked();

    void update_ui(int);

    void deal_change_para(const QString& frame_id,const QString& bund_rate,const QString& gain,const QString& inter_time,const QString& wait_time);

private:
    Ui::Parameter *ui;

private:
    QString trans_gain_to_data(const QString&) const;

public:
    bool set_para();

//TO DO: change private and using set&get method
public:
    QString equ_id;
    QString dev_id;

    QString acc_code;
    QString mask_code;
    QString t0;
    QString t1;
    QString fil_type;
    QString mode;

    QString send_format;
    QString frame_type;
    QString frame_format;
    QString frame_id;
    QStringList send_data;
    QString send_gap;
};

#endif // PARAMETER_H
